The List Box Description Resource
NEW WITH THE APPEARANCE MANAGER
You can use a list box description resource to specify information in a list box. A list box description resource is a resource of type'ldes'
. All list box description resources must have resource ID numbers greater than 127. The Control Manager uses the information you specify to provide additional information to the corresponding list box control. Figure 2-2 shows the structure of this resource.Figure 2-2 Structure of a compiled list box description
('ldes')
resource
You define a list box description resource by specifying these elements:
- Version number. An integer specifying the version of the resource format.
- Number of rows. An integer specifying the number of rows in the list box.
- Number of columns. An integer specifying the number of columns in the list box.
- Cell height. An integer specifying the height of a list item. If 0 is specified, the list item height is automatically calculated.
- Cell width. An integer specifying the width of a list item. If 0 is specified, the list item width is automatically calculated.
- Has vertical scroll bar. A Boolean value that indicates whether the list box should contain a vertical scroll bar. If
true
, the list box contains a vertical scroll bar; iffalse
, no vertical scroll bar.- Reserved. Set to 0.
- Has horizontal scroll bar. A Boolean value that indicates whether the list should contain a horizontal scroll bar. Specify
true
if your list requires a horizontal scroll bar; specifyfalse
otherwise.- Reserved. Set to 0.
- Resource ID. This is the resource ID of the list definition procedure to use for the list. To use the default list definition procedure, which supports the display of unstyled text, specify a resource ID of 0.
- Has size box. A Boolean value that indicates whether the List Manager should leave room for a size box. If
true
, a size box will be drawn; iffalse
, a size box will not be drawn.- Reserved. Set to 0.